#include <QCoreApplication>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
cout << "Vvedite a u b"<<endl;
    int ama,b;
    cin >>ama;
    cin>>b;
cout<<"Esli 1 to pravda esli 0 to loj"<<endl;

 cout<<((b%2)==(ama%2));

    return 0;
}
